<?php
class sfWidgetFormPlatnosci extends sfWidgetForm {
    /**
    * Available options:
    *  * column - liczba kolumn
    * 
    * @param mixed $options
    * @param mixed $attributes
    */
    protected function configure($options = array(), $attributes = array())
    {
          parent::configure($options, $attributes);
    }      
    
    public function render($name, $value = null, $attributes = array(), $errors = array())
    {

        $js = '<script type="text/javascript">PlnDrawRadioImg('.$this->getOption('column').');</script>';

    

        return $js;
  }    
  /**
   * Gets the JavaScript paths associated with the widget.
   *
   * @return array An array of JavaScript paths
   */
  public function getJavascripts()
  {
    return array('https://www.platnosci.pl/paygw/UTF/js/88588/6b/paytype.js');
  }
      
      
}
